package com.example.springboot01.model;

import lombok.Data;

import java.util.List;

/**
 * @Auther: zrd
 * @Date: 2022/3/25/03/25/17:56
 * @Description: com.example.springboot01.model
 */
@Data
public class Class {
    private static final long serialVersionUID = 1L;
    private int classId;
    private String className;
    private String classGrade;
    private String classMajor;
    private int classNumber;
    private List<Student> studentList;
    private Student student;


    public Class() {
    }

    public Class(String className, String classGrade, int classNumber) {
        this.className = className;
        this.classGrade = classGrade;
        this.classNumber = classNumber;
    }

    public Class(String className, String classGrade, String classMajor, int classNumber) {
        this.className = className;
        this.classGrade = classGrade;
        this.classMajor = classMajor;
        this.classNumber = classNumber;
    }

    public Class(int classId, String className, String classGrade, String classMajor, int classNumber) {
        this.classId = classId;
        this.className = className;
        this.classGrade = classGrade;
        this.classMajor = classMajor;
        this.classNumber = classNumber;
    }

    public Class(String className, String classGrade) {
        this.className = className;
        this.classGrade = classGrade;
    }

    public Class(String className) {
        this.className = className;
    }

    @Override
    public String toString() {
        return "Class{" +
                "classId=" + classId +
                ", className='" + className + '\'' +
                ", classGrade='" + classGrade + '\'' +
                ", classMajor='" + classMajor + '\'' +
                ", classNumber=" + classNumber +
                ", studentList=" + studentList +
                ", student=" + student +
                '}';
    }

    public String toStringName() {
        return "Class{" +
                "className='" + className + '\'' +
                '}';
    }

    public int getClassId() {
        return classId;
    }

    public void setClassId(int classId) {
        this.classId = classId;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public String getClassGrade() {
        return classGrade;
    }

    public void setClassGrade(String classGrade) {
        this.classGrade = classGrade;
    }

    public String getClassMajor() {
        return classMajor;
    }

    public void setClassMajor(String classMajor) {
        this.classMajor = classMajor;
    }

    public int getClassNumber() {
        return classNumber;
    }

    public void setClassNumber(int classNumber) {
        this.classNumber = classNumber;
    }
}
